﻿// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.

using BenchmarkDotNet.Attributes;

using SixLabors.ImageSharp.PixelFormats;

namespace SixLabors.ImageSharp.Benchmarks;

using SystemColor = System.Drawing.Color;

public class ColorEquality
{
    [Benchmark(Baseline = true, Description = "System.Drawing Color Equals")]
    public bool SystemDrawingColorEqual()
    {
        return SystemColor.FromArgb(128, 128, 128, 128).Equals(SystemColor.FromArgb(128, 128, 128, 128));
    }

    [Benchmark(Description = "ImageSharp Color Equals")]
    public bool ColorEqual()
    {
        return new Rgba32(128, 128, 128, 128).Equals(new Rgba32(128, 128, 128, 128));
    }
}
